﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="UpdateStuInfo.aspx.cs" Inherits="Web2014112110.UpdateStuInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/aee.jpg" Height="39px" Width="42px" />
    <asp:Label ID="lblTitletwo" runat="server" Font-Bold="False" Font-Names="华文琥珀" Font-Size="XX-Large" ForeColor="#000066" style="text-align: left" Text="学生信息系统"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:Label ID="lblUser" runat="server" Font-Bold="False" Font-Names="楷体" Font-Size="Medium" ForeColor="#000066" style="text-align: left" Text="当前登录用户："></asp:Label>
    <asp:Label ID="lblNowUser" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#000066"></asp:Label>
    <asp:Label ID="lblType" runat="server" Font-Bold="False" Font-Names="楷体" Font-Size="Medium" ForeColor="#000066" Text="用户类型："></asp:Label>
    <asp:Label ID="lblUserType" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#000066">学生</asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <p>
        <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#000066" ShowLines="True" style="margin-left: 24px">
        </asp:TreeView>
        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" SiteMapProvider="web1"/>
    </p>
    <p>
        <asp:Label ID="userName0" runat="server" Font-Bold="True" Font-Italic="False" Font-Names="楷体" Font-Size="Medium" ForeColor="#3333CC"></asp:Label>
    </p>
    <p>
        <asp:Image ID="Image" runat="server" Height="87px" ImageUrl="~/Images/a.jpg" Width="87px" ImageAlign="Middle" />
    </p>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder5" runat="server">
    <asp:Label ID="lblCopyright" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#000066" Text="Number：@2014112110；Name：@林丽鸿"></asp:Label>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceHolder4" runat="server">
    <p style="text-align: left">
        &nbsp;</p>
    <p style="text-align: center">
        &nbsp;</p>
    <p style="text-align: center">
        <asp:Label ID="userName1" runat="server" Font-Bold="True" Font-Italic="False" Font-Names="楷体" Font-Size="Large" ForeColor="#006699"></asp:Label>
        <asp:Label ID="lblNo0" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="X-Large" ForeColor="#006699" Text="学生修改个人信息"></asp:Label>
        </p>
    <p style="text-align: center">
        <asp:Button ID="btnUpdate" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#006699" OnClick="btnUpdate_Click" style="height: 28px" Text="修改个人信息" />
    </p>
    <p style="text-align: center">
        &nbsp;</p>
    <p style="text-align: center">
        <asp:Label ID="lblCollegeName" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#006699" Text="学院："></asp:Label>
        <asp:DropDownList ID="DropDownList1" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#006699" Width="138px">
            <asp:ListItem>计信学院</asp:ListItem>
            <asp:ListItem>中文学院</asp:ListItem>
            <asp:ListItem>数学学院</asp:ListItem>
            <asp:ListItem>外语学院</asp:ListItem>
            <asp:ListItem>体育学院</asp:ListItem>
            <asp:ListItem>物电学院</asp:ListItem>
            <asp:ListItem>生物学院</asp:ListItem>
            <asp:ListItem>化学学院</asp:ListItem>
            <asp:ListItem>音乐学院</asp:ListItem>
        </asp:DropDownList>
&nbsp;&nbsp;
        <asp:Label ID="lblName" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#006699" Text="姓名："></asp:Label>
        <asp:TextBox ID="txtName" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" Font-Underline="False" ForeColor="#006699" style="margin-bottom: 0px" Width="138px"></asp:TextBox>
    </p>
    <p style="text-align: center">
        <asp:Label ID="lblAge" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#006699" Text="年龄："></asp:Label>
        <asp:TextBox ID="txtAge" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#006699" Width="138px"></asp:TextBox>
&nbsp;&nbsp;
        <asp:Label ID="lblGender" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#006699" Text="性别："></asp:Label>
        <asp:TextBox ID="txtGender" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#006699" Width="138px"></asp:TextBox>
    </p>
    <p style="text-align: center">
        <asp:Label ID="lblPlace0" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#006699" Text="籍贯："></asp:Label>
        <asp:TextBox ID="txtPlace" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#006699" Width="138px"></asp:TextBox>
&nbsp; &nbsp;
        <asp:Label ID="lblNation" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" Font-Underline="False" ForeColor="#006699" Text="民族："></asp:Label>
        <asp:DropDownList ID="DropDownList2" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#006699" Height="22px" Width="138px">
            <asp:ListItem>汉族</asp:ListItem>
            <asp:ListItem>傣族</asp:ListItem>
            <asp:ListItem>维吾尔族</asp:ListItem>
            <asp:ListItem>苗族</asp:ListItem>
        </asp:DropDownList>
    </p>
    <p style="text-align: center">
        <asp:Label ID="userName" runat="server" Font-Bold="True" Font-Italic="False" Font-Names="楷体" Font-Size="Medium" ForeColor="#FF5050"></asp:Label>
        <asp:Label ID="lblInfo" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#FF5050"></asp:Label>
    </p>
    <p style="text-align: center">
        <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" Font-Underline="True" ForeColor="#006699" NavigateUrl="~/SelectSInfo.aspx">查询个人信息</asp:HyperLink>
    </p>
    <p style="text-align: center">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" PageSize="1" style="margin-left: 286px" Width="375px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="Name" HeaderText="姓名" SortExpression="Name" />
                <asp:BoundField DataField="CollegeName" HeaderText="学院" SortExpression="CollegeName" />
                <asp:BoundField DataField="Age" HeaderText="年龄" SortExpression="Age" />
                <asp:BoundField DataField="Gender" HeaderText="性别" SortExpression="Gender" />
                <asp:BoundField DataField="Place" HeaderText="籍贯" SortExpression="Place" />
                <asp:BoundField DataField="Nation" HeaderText="民族" SortExpression="Nation" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014112110ConnectionString %>" SelectCommand="SELECT [Name], [Age], [Gender], [Place], [Nation], [CollegeName] FROM [Student] WHERE ([No] = @No)">
            <SelectParameters>
                <asp:ControlParameter ControlID="userName1" Name="No" PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
</asp:Content>
